package com.yangxinxin.lesson.exception;

/**
 * @ClassName: BusinessException
 * TODO:类文件简单描述
 * @Author: 杨鑫鑫
 * @UpdateUser: 杨鑫鑫
 * @Version: 0.0.1
 */
public class BusinessException extends RuntimeException{
    private final int messageCode;

    private final String defaultMessage;

    public BusinessException(int messageCode, String defaultMessage) {
        super(defaultMessage);
        this.messageCode = messageCode;
        this.defaultMessage = defaultMessage;
    }

    public int getMessageCode() {
        return messageCode;
    }

    public String getDefaultMessage() {
        return defaultMessage;
    }
}
